class CreateBaseDepartments < ActiveRecord::Migration[5.1]
  def change
    create_table :base_departments do |t|
      t.string :name, comment: '英文名'
      t.string :name_cn, comment: '部门名'
      t.integer :parent_id, comment: '父部门id'
      t.integer :customer_id, comment: '对应客户'
      t.timestamps
    end
  end
end
